<nav class='navbar navbar-inverse navbar-fixed-top' role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">导航条</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Home</a>
                </div>
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li class="dropdown "><a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">开发工具<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo base_url() ?>config/config_check">配置查看</a></li>
                            </ul>
                        </li>
                        <li class="dropdown "><a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">运维工具<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo base_url() ?>zwop_system/system_manager">系统管理</a></li>
                                <li><a href="<?php echo base_url() ?>nc/nc_manager">NC管理</a></li>
                                <li><a href="<?php echo base_url() ?>route/route_manager">路由管理</a></li>
                                <li><a href="<?php echo base_url() ?>hosts/hosts_manager">HOSTS管理</a></li>
                            </ul>                           
                        </li>
                        
                    </ul>
                    
                    <ul class="nav navbar-nav pull-right">                    
                      <?php if ($is_admin) : ?>
                      <li class="dropdown "><a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i>admin<span class="caret"></span></a>
                      <ul class="dropdown-menu">
                        <li><a data-toggle="modal" href="#myModal"><i class="icon-user"></i> New User</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url() ?>login/logout_user"><i class="icon-share"></i> Logout</a></li>
                      </ul>
                      <?php else : ?>
                        <a class="btn" href="<?php echo base_url() ?>login/logout_user"><i class="icon-share"></i> Logout</a>
                      <?php endif; ?>
                      </li>
                    </ul>
                </div>
            </div>
</nav>
  
<!-- ****************************************************************** -->
  <!--                        NEW USER Modal Window                       -->
  <!-- ****************************************************************** -->

  <div class="modal fade" id="myModal" role="dialog" aria-hidden="true">
      <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">x</button>
          <h3>New User Details</h3>
        </div>
        <div class="modal-body">
            <p><input type="text" class="span4" name="username" id="username" placeholder="User"></p>
            <p><input type="password" class="span4" name="password" id="password" placeholder="Password"></p>
            <p>
              <label class="checkbox span4">
                <input type="checkbox" id="isadmin" name="isadmin"> Is an admin?
              </label>
            </p>
        </div>
        <div class="modal-footer">
          <a href="#" class="btn btn-warning" data-dismiss="modal">Cancel</a>
          <a href="#" id="btnModalSubmit" class="btn btn-primary">Create</a>
        </div>
      </div>
      </div>
  </div>

